<template>
  <div class="boxs">
    <header>
      <van-nav-bar title="聊天界面" left-text left-arrow @click-left="onClickLeft"/>
    </header>
  
    <section ref="center">
      <div class="callleft-k">
        <div class="imgtop">
          <img src="">
          <p></p>
        </div>
        <p class="ha-k">Lopx ipsum dolor sit amet consectetur adipisicing elit. Commodi cupiditate unde tempora distinctio iure recusandae quas sapiente alias dignissimos, eius repellat praesentium. Ratione voluptates doloribus expedita voluptatibus vero earum maxime!</p>
      </div>
      <div class="clear"></div>
      <div class="callright-k">
        <div class="imgtop">
          <p></p>
          <img src="">
        </div>
        <p class="ha-k">Lopx, ipsum dolor sit amet consectetur adipisicing elit. Suscipit, est. Natus voluptatem officiis molestiae tempora est totam quis quod asperiores consectetur voluptates modi, dolopxque magni sint, nihil, itaque fugit voluptatibus?</p>
      </div>
    </section>
    <footer>
      <img src="../../static/icon/volume.png">
      <input type="text" @click="tap()" v-model="value">
      <img src="../../static/icon/xiao.png">
      <div class="fs-k">
        <img src="../../static/icon/add.png">
        <van-button type="primary" size="small" v-if="fss" @click="btn()">发送</van-button>
      </div>
    </footer>
  </div>
</template>

<script>
import Axios from 'axios';
export default {
  name: "Thechatpage",
  data() {
    return {
      fss: false,
      accept:[],
      send:[],
      value:'',
      
      
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    tap() {
      this.fss = !this.fss;
    },

  },
  mounted() {
  
  },
};
</script>

<style scoped>
.clear:after {
  content: ".";
  height: 20px;
  display: block;
  overflow: hidden;
  visibility: hidden;
  clear: both;
}

.van-nav-bar {
  width: 375px;
  height: 42px;
  background-color: rgba(249, 249, 249, 1);
  color: rgba(100, 100, 100, 1);
  font-size: 14px;
  text-align: center;
  font-family: Arial;
}
.van-nav-bar__left .van-icon {
  color: #000000;
  font-weight: bold;
}
.boxs {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 16px
}
header{
  height: 42px;
  width: 100%;
}
section{
  flex: 1;
  padding: 34px 15px 18px 15px;
  overflow: auto
}
footer{
  display: flex;
  width: 375px;
  height: 50px;
  background-color: rgba(219, 219, 219, 1);
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
footer .van-icon {
  width: 24px;
  height: 24px;
}

footer input{
  width: 220px;
  height: 35px;
  background: #ffffff;
  border-radius: 8px;
}
footer img{
  width: 24px;
  height: 24px;
}
footer .fs-k {
  height: 50px;
  width: 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  position: relative;
}
footer .fs-k img{
  position: absolute;
}

footer .fs-k .van-button--primary {
  height: 35px;
  width: 15px;
  padding: 0;
  border-radius: 8px;
}

.callleft-k {
  min-width:5%;
  float: left;
  min-height: 110px;
}
.callleft-k .imgtop {
  width: 100px;
  height: 50px;
}
.callleft-k .imgtop img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  float: left;
  overflow: hidden;
}
.callleft-k .imgtop p {
  width: 27px;
  height: 14px;
  color: rgba(153, 153, 153, 1);
  font-size: 10px;
  text-align: left;
  background: cadetblue;
  float: left;
  margin-top: 10px;
  margin-left: 5px;
}
.callleft-k .ha-k {
  min-width: 30px;
  min-height: 50px;
  line-height: 50px;
  border-radius: 8px;
  background-color: rgba(247, 247, 247, 1);
  margin-top: 10px;
  
}

/* 右 */
.callright-k {
  min-width:5%;
  float: right;
  min-height: 110px;
}
.callright-k .imgtop {
  width: 100px;
  height: 50px;
  float: right;
  display: flex;
  justify-content: flex-end;
}
.callright-k .imgtop img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(234, 234, 234, 1);
  float: right;
  overflow: hidden;
  margin-top: 0px;
}
.callright-k .imgtop p {
  width: 27px;
  height: 14px;
  color: rgba(153, 153, 153, 1);
  font-size: 10px;
  text-align: left;
  background: cadetblue;
  margin-top: 10px;
  margin-right: 5px;
}
.callright-k .ha-k {
 min-width:30px;
  min-height: 50px;
  line-height: 50px;
  border-radius: 8px;
  background: cadetblue;
  margin-top: 60px;
}
</style>
